<div class="form login_reg">
  <h1>登录TT小站</h1>
  <div>
    <p class="tips" style="margin:25px;">已注册用户请从这里登录</p>
  </div>
  <% form_tag session_path do -%>

  <div  class="form">
      <p>
        <label for="login">账号</label><%= text_field_tag 'login','',:class=>'login_input' %>
      </p>
      <p>
        <label for="password">密码</label><%= password_field_tag 'password','',:class=>'login_input' %>
      </p>
      <div style="margin: 15px 115px;">
       <label for="remember_me" style="color:gray;">记住我</label>
       <%= check_box_tag 'remember_me' %>
      </div>
      <div style="margin: 15px 150px;">
        <%= image_submit_tag("login_button.gif",:id=>"login_button") %>
      </div>
    </div>
  <% end -%>
  <p class="tips" style="margin:60px 25px;float: right">
    有任何疑问请点击 <a href="/articles/3" target="_blank">帮助中心</a> 或 <a href="articles/3" target="_blank">联系客服</a>
  </p>
</div>

<%= error_messages_for :user %>
<%= render :partial=>"user",:locals => { :button_name => "注册"} %>



